import { createSlice } from '@reduxjs/toolkit'

const initialState = {}

export const userInfoSlice = createSlice({
  name: 'userInfo',
  initialState,
  reducers: {
    setUserInfo (state, {payload}) {
        return payload;
    }
  },
})

export const { setUserInfo } = userInfoSlice.actions

export default userInfoSlice.reducer